<?php

namespace app\admin\validate;

use think\Validate;

class BrandValidate extends Validate
{
    protected $rule =   [
        'name' => 'require',
        'sort' => 'require',
    ];

    protected $message = [
        'name.require' => '缺少参数name',
        'sort.require' => '缺少参数sort',
    ];

    protected $scene = [
        'add' => ['name', 'sort'],
    ];
}